const fs = require('fs')
const path = require('path')

const routerArr = []
const fileArr = fs.readdirSync(__dirname)

for (let i = 0; i < fileArr.length; i++) {
	let fileName = fileArr[i].replace(/\.js/, '')
	if (fileName == 'index')
		continue;
	routerArr.push(require(`./${fileName}`))
}

module.exports = routerArr